public class Main {
    public static void main(String[] args) {
        //normal
        Component c = new ConcreteComponent();
        c.doSomething();
        c.end();

        //decorator
        System.out.println("---------decorator--------");
        c = new OneDecorator(c);
        c = new TwoDecorator(c);
        c.doSomething();
        c.end();
    }
}
